# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer: Charles Mauch <cmauch@gmail.com>

pkgname=perl-gssapi
pkgver=0.28
pkgrel=20
pkgdesc="Perl/CPAN Module GSSAPI"
arch=("loong64" "x86_64")
url="https://search.cpan.org/dist/GSSAPI"
license=("GPL" "PerlArtistic")
depends=('krb5')
options=('!emptydirs')
source=("https://www.cpan.org/authors/id/A/AG/AGROLMS/GSSAPI-${pkgver}.tar.gz")
sha256sums=('7d8f2c7b61762fb4ec72d2ec281290f2f87f9c7d298273da4525432a65e770d6')

build() {
  cd GSSAPI-${pkgver}

  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor

  make
}

package() {
  cd GSSAPI-${pkgver}

  make install DESTDIR="$pkgdir"

  find "$pkgdir" -name '.packlist' -delete
  find "$pkgdir" -name '*.pod' -delete
}
